<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    template="/layout/page/sample/left-right-template.xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:a4j="http://www.sinosoft.com.cn/a4j"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:sinox="http://www.sinosoft.com.cn/sinox"
	xmlns:p="http://primefaces.org/ui">

    <ui:param name="compId" value="#{commonContentViewBean.id}" /> 
    
    <ui:param name="treeViewBean"
		value="#{commonContentViewBean.allView[0]}" />
	<ui:param name="rightViewBean"
		value="#{commonContentViewBean.allView[1]}" />
    
    <ui:define name="compLeft"> 
		<h:form id="#{compId}_from">
		    <ui:decorate template="/layout/iteration/tree/sino-tree-single-template.xhtml">
				<ui:param name="compViewBean" value="#{treeViewBean}" />
				<ui:param name="compId" value="#{commonContentViewBean.id}_tree" />
				<ui:param name="compSelectedNodeUpdate"
					value="main-tabSet:#{commonContentViewBean.id}_rightMain_form" />
			</ui:decorate>
		</h:form>
	</ui:define>
	
	<ui:define name="compRight" >
		
		<ui:decorate template="/layout/page/search/custom-search-template.xhtml">
			 
			<ui:param name="compId" value="#{commonContentViewBean.id}_rightMain" />
			<ui:param name="compTitle" value="菜单信息" />
			
			<ui:define name="compButtons" >
				<p:commandButton 
					oncomplete="SinoPortal.View.createWin('menu-scene','menu-manage-add','#{compId}',{type:'createdir',displayName:'添加菜单'});"
					title="添加菜单" image="ui-icon-disk" value="添加菜单">
				</p:commandButton> 
				<p:commandButton 
					oncomplete="SinoPortal.View.createWin('menu-scene','menu-manage-edit','#{compId}',{type:'update',displayName:'修改菜单'});"
					title="修改菜单" image="ui-icon-disk" value="修改菜单">
				</p:commandButton>  
				<p:commandButton actionListener="#{codeSetManageAction.delAction}"
					onstart="if(confirm('确认要删除吗？')){return true;}else{return false;}"
					update="#{compId}_right_form"
					title="删除菜单" image="ui-icon-disk" value="删除菜单"> 
				</p:commandButton>
			</ui:define>
			
			<ui:define name="compContent" >
			
				<ui:decorate template="/layout/input/editable-template.xhtml">
			
					<!-- 第一行 -->
					<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
						<ui:param name="compBean1Id" value="menuid" />
						<ui:param name="compBean1Lable" value="菜单目录编号 " />
						<ui:param name="compBean1Editable" value="false"/>
						
						<ui:define name="compBean1Content">
							<h:outputText id="#{compBean1Id}" value="#{rightViewBean.menuid}" />
						</ui:define>
						
						<ui:param name="compBean2Id" value="displayName" />
						<ui:param name="compBean2Lable" value="菜单目录名称" />
						<ui:param name="compBean2Editable" value="false"/>
						
						<ui:define name="compBean2Content">
							<h:outputText id="#{compBean2Id}" value="#{rightViewBean.displayName}" />
						</ui:define>
						
					</ui:decorate>
					
					<!-- 第二行 -->
					<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
					
						<ui:param name="compType" value="single" />
						<ui:param name="compBean1Id" value="description" />
						<ui:param name="compBean1Lable" value="菜单目录详细信息" />
						<ui:param name="compBean1Editable" value="false"/>
						
						<ui:define name="compBean1Content">
							<h:outputText id="#{compBean1Id}" value="#{rightViewBean.description}" />
						</ui:define>
						
					</ui:decorate>
					
					<!-- 第三行 -->
					<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
					
						<ui:param name="compBean1Id" value="image24" />
						<ui:param name="compBean1Lable" value="菜单显示图片（大）" />
						<ui:param name="compBean1Editable" value="false"/>
						
						<ui:define name="compBean1Content">
							<h:outputText id="#{compBean1Id}" value="#{rightViewBean.image24}" />
						</ui:define>
						
						<ui:param name="compBean2Id" value="image16" />
						<ui:param name="compBean2Lable" value="菜单显示图片（小）" />
						<ui:param name="compBean2Editable" value="false"/>
						
						<ui:define name="compBean2Content">
							<h:outputText id="#{compBean2Id}" value="#{rightViewBean.image16}" />
						</ui:define>
						
					</ui:decorate>
					
					<!-- 第四行 -->
					<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
					
						<ui:param name="compType" value="single" />
						<ui:param name="compBean1Id" value="cmdId" />
						<ui:param name="compBean1Lable" value="菜单命令" />
						<ui:param name="compBean1Editable" value="false"/>
						
						<ui:define name="compBean1Content">
							<h:outputText id="#{compBean1Id}" value="#{rightViewBean.description}" />
						</ui:define>
						
					</ui:decorate>
				
				</ui:decorate>
			
			</ui:define>
			
		</ui:decorate>

	</ui:define>
</ui:composition>
